<template>
  <div class="lost-page publish-page">
    <div class="page-header">
      <h2>发布信息</h2>
      <el-button type="primary" @click="$router.push('/')">
        <el-icon><Back /></el-icon>返回首页
      </el-button>
    </div>

    <!-- 筛选条件区域 -->
    <div class="filter-section">
      <el-card class="form-card">
        <publish-form></publish-form>
      </el-card>
    </div>
  </div>
</template>

<script>
import PublishForm from "@/components/PublishForm.vue";
import { Back } from "@element-plus/icons-vue";

export default {
  name: "PublishPage",
  components: {
    PublishForm,
    Back,
  },
};
</script>

<style scoped>
/* 直接复用失物招领页面的样式 */
.publish-page {
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 22px;
}

.filter-section {
  margin-bottom: 20px;
}

.form-card {
  border-radius: 4px;
  box-shadow: var(--box-shadow);
}
</style> 